<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<meta name="description" content="description"/>
<meta name="keywords" content="keywords"/> 
<meta name="author" content="author"/> 
	<link rel="stylesheet" href="<?=base_url()?>themes/transparent/css/transparent.css" type="text/css" media="screen, projection" />

<title><?=$title?></title>
</head>

<body>

<div class="container">
	
	<div class="main">

		<div class="header">
		
			<div class="title">
				 <?php
		$site_name=$this->config->item('site_name');
		$site_slogan=$this->config->item('site_slogan');
		$sub_site_slogan=$this->config->item('sub_site_slogan');
		 ?>
			<h1><?=anchor('blog/',$site_name,'Home')?> - <?=$site_slogan?></h1>
		  <p><?=$sub_site_slogan?></p>
			</div>

		</div>
		
		<div class="content">
	
			<?=$allposts?>>
		</div>

		<div class="sidenav">

			<?php 
			//known bug two form can't work together working to remove this.
			 if($this->uri->segment(1)=="users") {echo ""; } else { ?>
            <h2>Search</h2>
			<?=$this->load->view('searchform');?>
            <p>&nbsp;</p>
            <?php } ?>
            <h2>Latest Entries</h2>
			<?=$RecentPosts?>
            <p>&nbsp;</p>
            <h2>Latest Comments</h2>
			<?=$RecentComments?>
            <p>&nbsp;</p>
			<h2>Categories</h2>
            <?=$Categories?>
            <p>&nbsp;</p>
            <h2>Archives</h2>
            <?=$Archives?>
            <p>&nbsp;</p>
             <h2>Users</h2>
           <?php
		   	if($this->session->userdata('logged_in'))
			{?>
			<ul>
            	<li>Welcome <?=$this->session->userdata('first_name')?>&nbsp;<?=$this->session->userdata('last_name')?></li>
                <li><?=anchor('users/ViewProfile/'.$this->session->userdata('user_id'),'View Profile')?></li>
                <li><?=anchor('users/Logout','Logout')?></li>
            </ul> 
		   <?php } else {?>
			<ul>
            	<li><?=anchor('users/Register','Register')?></li>
                <li><?=anchor('users/Login','Login')?></li>
                <li><?=anchor('users/ForgetPassword','Forget Password')?></li>
            </ul>
            <?php }?>
            <p>&nbsp;</p>
            <div id="tagcloud">
			<h2>TagClouds</h2>
            <?=$TagClouds?>
            <p>&nbsp;</p>

		</div>
	
		<div class="clearer"><span></span></div>

	</div>

	<div class="footer">
		
		<span class="left">&copy; 2007 <a href="index.html">Website.com</a>. Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> &amp; <a href="http://validator.w3.org/check?uri=referer">XHTML</a></span>
		
		<span class="right">Design by <a href="http://arcsin.se/">Arcsin</a> <a href="http://templates.arcsin.se/">Web Templates</a></span>

		<div class="clearer"><span></span></div>

	</div>

</div>

</body>

</html>